net: dsa: b53: Support setting learning on port
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 22 Feb 2021 22:30:10 +0000 (14:30 -0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 19 Mar 2021 18:20:52 +0000 (18:20 +0000)
commitc7bd0864e48f5beb0a92d0746b5fc8f596c6ffd9
tree365d472d99b0a02cc110fae2afdbf51273a6bee1
parent2521b2dcf1192ed1a24e486a9c026bb4f0815f85
net: dsa: b53: Support setting learning on port

commit f9b3827ee66cfcf297d0acd6ecf33653a5f297ef upstream.

Add support for being able to set the learning attribute on port, and
make sure that the standalone ports start up with learning disabled.

We can remove the code in bcm_sf2 that configured the ports learning
attribute because we want the standalone ports to have learning disabled
by default and port 7 cannot be bridged, so its learning attribute will
not change past its initial configuration.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/arm
Gbp-Pq: Name net-dsa-b53-support-setting-learning-on-port.patch
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_regs.h
drivers/net/dsa/bcm_sf2.c